package com.ea.eadp.nexus.test.common;

public class AppClient {
    private Boolean enableDeviceCheck;
    private Boolean enableTFA;
    private Boolean enableNewDeviceCheck;
    private String clientId;
    
    public AppClient(boolean enableDeviceCheck, boolean enableTFA, boolean enableNewDeviceCheck){
        this.enableDeviceCheck = enableDeviceCheck;
        this.enableTFA = enableTFA;
        this.enableNewDeviceCheck = enableNewDeviceCheck;
    }
    
    public AppClient(String clientId, boolean enableDeviceCheck, boolean enableTFA, boolean enableNewDeviceCheck){
        this.clientId = clientId;
        this.enableDeviceCheck = enableDeviceCheck;
        this.enableTFA = enableTFA;
        this.enableNewDeviceCheck = enableNewDeviceCheck;
    }
    
    public Boolean getEnableDeviceCheck() {
        return enableDeviceCheck;
    }
    public void setEnableDeviceCheck(Boolean enableDeviceCheck) {
        this.enableDeviceCheck = enableDeviceCheck;
    }
    public Boolean getEnableTFA() {
        return enableTFA;
    }
    public void setEnableTFA(Boolean enableTFA) {
        this.enableTFA = enableTFA;
    }
    public Boolean getEnableNewDeviceCheck() {
        return enableNewDeviceCheck;
    }
    public void setEnableNewDeviceCheck(Boolean enableNewDeviceCheck) {
        this.enableNewDeviceCheck = enableNewDeviceCheck;
    }

    public String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }
    
    public boolean match(AppClient appClient){
        if(appClient != null){
            return appClient.getEnableDeviceCheck() == this.getEnableDeviceCheck() &&
                    appClient.getEnableNewDeviceCheck() == this.getEnableNewDeviceCheck() &&
                    appClient.getEnableTFA() == this.getEnableTFA();
        }
        return false;
    }
}
